﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MethodWorx.CMS.Plugins;
using MethodWorx.CMS.Services;
using System.Web.Mvc;
using MethodWorx.CMS.Content;
using MethodWorx.CMS.UI.Application.ActionResults;

namespace MethodWorx.CMS.Workflow.SetAttribute
{
    public class SetAttributeConfigurationController : WorkflowConfigurationController<SetAttributeConfiguration>
    {
        public SetAttributeConfigurationController(IdeExtension view, WorkflowService service)
            : base(view, service)
        {
        }

        protected override WorkflowConfigurationStep CreateNewWorkflowConfigurationStep(Guid id, string output)
        {
            return new WorkflowConfigurationStep()
            {
                CanConfigure = true,
                ComponentId = SetAttributeWorkflowComponent.ComponentId,
                Id = id,
                ComponentConfiguration = new SetAttributeConfiguration()
            };
        }
    }
}
